import request from '@/utils/request'

// 查询资产编码列表
export function listAssetCode(query) {
  return request({
    url: '/sales/AssetCode/list',
    method: 'get',
    params: query
  })
}

// 查询资产编码详细
export function getAssetCode(id) {
  return request({
    url: '/sales/AssetCode/' + id,
    method: 'get'
  })
}

// 新增资产编码
export function addAssetCode(data) {
  return request({
    url: '/sales/AssetCode',
    method: 'post',
    data: data
  })
}

// 修改资产编码
export function updateAssetCode(data) {
  return request({
    url: '/sales/AssetCode',
    method: 'put',
    data: data
  })
}

// 删除资产编码
export function delAssetCode(id) {
  return request({
    url: '/sales/AssetCode/' + id,
    method: 'delete'
  })
}
